package com.xuecheng.content.service;

import com.xuecheng.base.model.PageParams;
import com.xuecheng.base.model.PageResult;
import com.xuecheng.content.model.dto.CourseTeacherResultDto;
import com.xuecheng.content.model.dto.CourseTeacherDto;
import com.xuecheng.content.model.po.CourseTeacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2025-05-21
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    PageResult<CourseTeacherResultDto> selectCourseTeacher(Long courseId, PageParams pageParams);

    CourseTeacherResultDto createOrUpdateCourseTeacher(CourseTeacherDto courseTeacherDto);

    void deleteCourseTeacher(Long courseId, Long teachId);

    CourseTeacherResultDto getCourseTeacherById(Long teacherId);

    Map<String, String> courseTeacherIdExtractMd5(Long teacherId);

    Boolean updateCourseTeacherPicture(Long teacherId, String picUrl);

    CourseTeacher selectByCourseId(String courseId);
}
